<table>
  <thead>
  <tr>
    <th>Title</th>
    <th>Director</th>
    <th>Cast</th>
    <th>Release Date</th>
  </tr>
  </thead>
  <tbody>
  <tr *ngFor="let movie of movies; let i = index; let odd = odd; let even = even; let first = first; let last = last"
      [ngClass]="{ odd: odd, even: even, first: first, last: last }"
  >
    <td>{{ i }}</td>
    <td>{{ movie.title }}</td>
    <td>{{ movie.director }}</td>
    <td>{{ movie.cast }}</td>
    <td>{{ movie.releaseDate }}</td>
  </tr>
  </tbody>
</table>
